<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <div id="app">
        
    </div>
    <script>
        $.ajax({
            url:"http://192.168.4.18:8000",
            type:"get",
            success:res=>{
                var arr = res.result
                // console.log(arr);
                arr.forEach(item=>{
                    var template=`
                        <img src=${item.pic} alt="">
                        <p>${item.title}</p>
                        <span>${item.raiting}</span>
                        <p>${item.slogo}</p>
                    `
                    $("#app").append(template)
                })
            }
        })
    </script>
</body>
</html>